package com.cqc.jdk8.Jtime;

import org.junit.Test;

import java.time.Clock;

/**
 * @author cui
 * @date 2023/3/6 19:51
 * @description Clock
 **/
public class ClockTest {

    @Test
    public void f1() {
        Clock clock = Clock.systemUTC();
        //1678103555831
        System.out.println(clock.millis());

        Clock clock2 = Clock.systemDefaultZone();
        //1678103555873
        System.out.println(clock2.millis());
        System.out.println(System.currentTimeMillis());

    }
}
